<template>
  <div class="echart-splitLine">
    <FormItem
      :form="form"
      option="echart.splitLine.show"
      :label="$demoi18n('echart.label.splitLine')"
      type="checkbox_array"
      :options="showLabels"
    />
    <FormItem
      :form="form"
      option="echart.splitLine.lineStyle.color"
      :label="$demoi18n('echart.label.splitLineColor')"
      type="color"
    />
    <FormItem
      :form="form"
      option="echart.splitLine.lineStyle.opacity"
      :label="$demoi18n('echart.label.splitLineOpacity')"
      type="number"
      :precision="2"
      :step="0.01"
    />
    <FormItem
      :form="form"
      option="echart.splitLine.lineStyle.width"
      :label="$demoi18n('echart.label.splitLineWidth')"
      type="number"
    />
    <FormItem
      :form="form"
      option="echart.splitLine.lineStyle.type"
      :label="$demoi18n('echart.label.splitLineType')"
      type="select"
      :options="lineTypes"
    />
  </div>
</template>
<script>
import FormItem from '@/components/common/echart/form-item.vue';
import { lineTypes } from '@/components/common/echart/form-item-options.js';

export default {
  components: { FormItem },
  props: {
    form: Object,
  },
  data() {
    return {
      lineTypes,
      showLabels: [{ label: this.$demoi18n('panel.option.vertical') }, { label: this.$demoi18n('panel.option.horizontal') }],
    };
  },
  computed: {},
  watch: {},
  methods: {},
};
</script>
<style lang="less" scoped></style>
